package com.tzx.rxbusdemo.rx.bus;

/**
 * Created by tanzhenxing
 * Date: 2016/9/7.
 * Description:
 */
public class ObjectEvent<T> implements Event {
    private T object;
    private String action;

    public ObjectEvent(String action, T object) {
        this.action = action;
        this.object = object;
    }

    @Override
    public String action() {
        return action;
    }

    public T getObject() {
        return object;
    }
}
